menuitem: Fix some possible problems with arrow_gadget
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Apr 2016 05:09:32 +0000 (01:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Apr 2016 05:09:32 +0000 (01:09 -0400)
commit96f0ed9ec5b5b071efabb15b03c37f40df7ae3b1
treedd3981397e35ce21b0118f776811b4263e28dfcd
parent5ba8a25d2966dc2cdc67a350d4ea6c4ecb293919
menuitem: Fix some possible problems with arrow_gadget

https://bugzilla.gnome.org/show_bug.cgi?id=765134 shows
a stacktrace where we end up with arrow_gadget being NULL
despite the conditions for its presence being satisfied.

This commit makes sure we call update_arrow_gadget() whenever
any of the conditions changes. This should fix the reported
crash.
gtk/gtkmenuitem.c